import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useCounterStore = defineStore('user', () => {
    const userInfo = ref({
        username: '',
        phone: "",
        token: ''
    })

    const setUserInfo = (info) => {
        userInfo.value = info
    }

    return { userInfo, setUserInfo }
},{
    persist: true,
  },)